#include<iostream>
#include<string>
#include<unistd.h>
#include<fcntl.h>
#include<cstdio>
#include<sys/types.h>
#include<cstring>
#include<cassert>
#include<cerrno>
#include<sys/stat.h>
#define NAME_PIPE "/home/cc/mk/NamedPipe/MyPipe"
using namespace std;

bool CreatePipe(const string & Path)
{
    umask(0);
    int n = mkfifo(Path.c_str(),0600);
    if(n == 0)
    return true;
    else
    {
        cout<<strerror(errno)<<endl;
        return false;
    }

}
bool RemovePipe(const string & Path)
{
    int n = unlink(Path.c_str());
    assert(n == 0);
    (void)n;
}